<template>
  <div class="perspective-text">
    <div class="perspective-line">
      <p></p>
      <p>Reality</p>
    </div>
    <div class="perspective-line">
      <p>Reality</p>
      <p>Is Only</p>
    </div>
    <div class="perspective-line">
      <p>Is Only</p>
      <p>A Matter Of</p>
    </div>
    <div class="perspective-line">
      <p>A Matter Of</p>
      <p>Perception</p>
    </div>
    <div class="perspective-line">
      <p>Perception</p>
      <p></p>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="css" scoped>
.perspective-text {
  color: #583030;;
  font-family: Arial;
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.perspective-line {
  height: 50px;
  overflow: hidden;
  position: relative;
}

p {
  margin: 0;
  height: 50px;
  line-height: 50px;
  transition: all 0.5s ease-in-out;
}

.perspective-line:nth-child(odd) {
  transform: skew(60deg, -30deg) scaleY(0.667);
}

.perspective-line:nth-child(even) {
  transform: skew(0deg, -30deg) scaleY(1.337);
}

.perspective-text:hover p {
  transform: translate(0, -50px);
}

.perspective-line:nth-child(1) {
  left: 29px;
}

.perspective-line:nth-child(2) {
  left: 58px;
  background: #f07e6e;
}

.perspective-line:nth-child(3) {
  left: 87px;
  background: #84cdfa;
}

.perspective-line:nth-child(4) {
  left: 116px;
  background: #5ad1cd;
}

.perspective-line:nth-child(5) {
  left: 145px;
}
</style>>


